<template>
  <div class="ota">
    <ota-upload
      ref="pageContentRef"
      :contentConfig="contentTableConfig"
      pageName="otaUpload"
    ></ota-upload>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import OtaUpload from '@/components/ota-upload'
import { useOtaUpload } from '@/hooks/useOtaUpload'
import { contentTableConfig } from './config/content.config'

export default defineComponent({
  name: 'ota',
  components: {
    OtaUpload
  },
  setup() {
    const [otaUploadRef, handleUploadClick] = useOtaUpload()
    return {
      otaUploadRef,
      handleUploadClick,
      contentTableConfig
    }
  }
})
</script>

<style scoped lang="less"></style>
